package com.huawei.classroom.student.h08;

public class Dog {
	int num=0;
	public void feed() throws Exception{
		num++;
		if(num > 3) {
			throw new Exception("I can not eat more!");
		}
	}
}
